package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import cn.com.api.entity.ApiT_promote;
import cn.com.api.entity.ApiTmember;
import cn.com.util.*;


public interface ApiT_promoteMapper {
	/** 新增推广人员 */
	public int insertApiT_promote(ApiT_promote promote);
	/** 更新推广人员 */
	public void updateApiT_promote(ApiT_promote promote);
	
	/** 根据id获取推广人员 */
	public ApiT_promote searchPromoteById(@Param("id")String id);
	
	/** 根据id删除推广人员 */
	public void deletePromoteById(@Param("id")String id);
	
	/** 根据city_id 查询推广员列表 */
	public List<ApiT_promote> findByConditionsListPage(@Param("conditions")Map<String,Object> conditions,@Param("page")PageInfo page);
	
	/** 校验邀请码是否唯一 */
	public int checkInviteCode(ApiT_promote t_promote);
	
	/** 查询app的推广统计信息 */
	public List<ApiT_promote> findPromoteAppByConditionsListPage(@Param("conditions")Map<String,Object> conditions,@Param("page")PageInfo page);
	
	/** 查询app的推广统计信息 */
	public List<ApiTmember> findPromoteAppDetailByConditionsListPage(@Param("conditions")Map<String,Object> conditions,@Param("page")PageInfo page);
	
}